package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * AlarmHandle entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ALARM_HANDLE")
@SequenceGenerator (name="AUTO_ID", sequenceName="AUTO_ID")
public class AlarmHandle implements java.io.Serializable {
	private static final long serialVersionUID = 816024149765340381L;
	private Long id;
	private Long alarmClassId;
	private String name;
	private Integer type;
	private String acceptor;
	private Integer intervalValue;
	private Integer recvValue;
	
	private String acceptorName;
	private String alarmClassName;

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	@GeneratedValue (strategy=GenerationType.SEQUENCE, generator="AUTO_ID")
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "ALARM_CLASS_ID")
	public Long getAlarmClassId() {
		return alarmClassId;
	}

	public void setAlarmClassId(Long alarmClassId) {
		this.alarmClassId = alarmClassId;
	}

	@Column(name = "NAME", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "TYPE", precision = 22, scale = 0)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "ACCEPTOR", length = 510)
	public String getAcceptor() {
		return this.acceptor;
	}

	public void setAcceptor(String acceptor) {
		this.acceptor = acceptor;
	}

	@Column(name = "INTERVAL_VALUE", precision = 22, scale = 0)
	public Integer getIntervalValue() {
		return this.intervalValue;
	}

	public void setIntervalValue(Integer intervalValue) {
		this.intervalValue = intervalValue;
	}

	@Column(name = "RECV_VALUE", precision = 22, scale = 0)
	public Integer getRecvValue() {
		return this.recvValue;
	}

	public void setRecvValue(Integer recvValue) {
		this.recvValue = recvValue;
	}

	@Column(name = "ACCEPTOR_NAME")
	public String getAcceptorName() {
		return acceptorName;
	}

	public void setAcceptorName(String acceptorName) {
		this.acceptorName = acceptorName;
	}

	@Column(name = "ALARM_CLASS_NAME", length = 510)
	public String getAlarmClassName() {
		return alarmClassName;
	}

	public void setAlarmClassName(String alarmClassName) {
		this.alarmClassName = alarmClassName;
	}

}